import requests
import json
headers = {
    "Content-Type": "application/json; charset=UTF-8"
    }
url = "http://127.0.0.1:5000/callAlgorithm"
pyload = {
            "rootPath": "D:\\callAlgorithm\\gcn-supervised-graph-classification",
            "algorithmName": "weight_calculation",
            "algorithmType": "基于权重综合",
            "algorithmPara": "{\"currentItem\": \"故障处理能力\", \"childItem\": {\"规则引擎有无\": \"0.1\", \"模型框架有无\": \"0.2\", \"数据样本有无\": \"0.3\", \"知识组织有无\": \"0.4\"}}",
            "deployment_path": "not_use",
            "additionalPara": "",
           }
response = requests.post(url, data=json.dumps(pyload), headers=headers).text
print(response)